#pragma once
#include"stdafx.h"
	
class Grid
{
public:
	Grid (void)							  { Reset();}
	~Grid(void)							  { };
	Point  GetWinner()                    { return m_pWinPoint; }
	void   ExtractCoin (short col);
	bool   IsFullColumn(short i)          { return (m_sGridCounter[i] == N_ROW_U);}
	Point  FindWinner(void);    
	short  InsertCoin(short col, Color_t enCoinCol);       
	void   Reset();
	void   Trace();
	
private:
	Color_t m_sGrid[N_ROW][N_COL];  //griglia con lo stato attuale  della partita
	short   m_sGridCounter[N_COL];
	Point   m_pWinPoint;
};
